package com.xgk.boot.module.core.dal.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 货币表
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Data
@TableName("currency")
public class CurrencyDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "currency_id", type = IdType.AUTO)
    private Long currencyId;

    /**
     * 中文名
     */
    @TableField(value = "currency_name")
    private String currencyName;

    /**
     * 简称
     */
    @TableField(value = "currency_code")
    private String currencyCode;

    /**
     * 是否为本位币
     */
    @TableField(value = "currency_local")
    private Boolean currencyLocal;

    /**
     * 标示符左
     */
    @TableField(value = "currency_symbol_left")
    private String currencySymbolLeft;

    /**
     * 标示符右
     */
    @TableField(value = "currency_symbol_right")
    private String currencySymbolRight;

    /**
     * 小数点
     */
    @TableField(value = "currency_decimal_point")
    private String currencyDecimalPoint;

    /**
     * 千位分隔符
     */
    @TableField(value = "currency_thousands_point")
    private String currencyThousandsPoint;

    /**
     * 小数点后位数
     */
    @TableField(value = "currency_decimal_places")
    private Integer currencyDecimalPlaces;

    /**
     * 官方汇率
     */
    @TableField(value = "currency_official_rate")
    private Double currencyOfficialRate;

    /**
     * 汇率
     */
    @TableField(value = "currency_rate")
    private Double currencyRate;

    /**
     * 更新时间
     */
    @TableField(value = "currency_update_time")
    private Date currencyUpdateTime;

    /**
     * 默认国家简字码
     */
    @TableField(value = "country_code")
    private String countryCode;
    @TableField(value = "note")
    private String note;
    @TableField(value = "op_user")
    private String opUser;



    @Override
    public String toString() {
        return "Currency{" +
        ", currencyId = " + currencyId +
        ", currencyName = " + currencyName +
        ", currencyCode = " + currencyCode +
        ", currencyLocal = " + currencyLocal +
        ", currencySymbolLeft = " + currencySymbolLeft +
        ", currencySymbolRight = " + currencySymbolRight +
        ", currencyDecimalPoint = " + currencyDecimalPoint +
        ", currencyThousandsPoint = " + currencyThousandsPoint +
        ", currencyDecimalPlaces = " + currencyDecimalPlaces +
        ", currencyOfficialRate = " + currencyOfficialRate +
        ", currencyRate = " + currencyRate +
        ", currencyUpdateTime = " + currencyUpdateTime +
        ", countryCode = " + countryCode +
        ", note = " + note +
        ", opUser = " + opUser +
        "}";
    }
}
